<template>
	<view class="couponBox">
		<view class="text">
			<view class="left">
				<view class="t1">
					￥{{item.amount}}
				</view>
				<view class="t2">
					满{{scope.row.minPoint}}可用
				</view>
			</view>
			<view class="con">
				<view class="t1">
					{{item.name}}
				</view>
				<view class="t2"> 
					{{item.type == 0 ? '全场赠券' : item.type == 1?'会员赠券' : item.type == 2?'购物赠券' : '注册赠券'}} 
				</view>
				<view class="t3">
					有效期至：{{item.endTime}}
				</view>
			</view>
		</view>
		<view class="right">
			<text>立</text>
			<text>即</text>
			<text>使</text>
			<text>用</text> 
		</view>
	</view>
</template>

<script>

</script>

<style lang="scss">
	.couponBox{
		display: flex;
		background: #fff;
		height: 210rpx;
		.text{
			padding: 10rpx;
			box-sizing: border-box;
			display: flex;
			flex: 1;
		}
		.right{
			margin-left: auto;
			width: 64rpx;
			height: 210rpx;
			background: rgba(4,0,0,0.06);
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			text{
				display: block;
				font-size: 24rpx;
				color: #020202;
			}
		}
		.con{
			margin-left: 23rpx;
			flex: 1;
			padding: 10rpx;
			padding-left: 0;
			.t1{
				font-size: 26rpx;
				color: #020202;
			}
			.t2{
				width: 74rpx;
				height: 40rpx;
				background: #EEEDED;
				text-align: center;
				line-height: 40rpx;
				font-size: 20rpx;
				color: #020202;
				margin-top: 12rpx;
			}
			.t3{
				font-size: 22rpx;
				color: #999999;
				margin-top: 12rpx;
			}
		}
		.left{
			width: 190rpx;
			height: 190rpx;
			background: #020202;
			border-radius: 4rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
			.t1{
				font-size: 44rpx;
				color: #fff;
			}
			.t2{
				font-size: 22rpx;
				color: rgba(255,255,255,.5);
				margin-top: 10rpx;
			}
		}
	}
</style>